home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ecryptfs-utils.postinst < prev    next >
Text File  |  2009-10-22  |  666b  |  31 lines

  1. #!/bin/sh -e
  2.  
  3. case "${1}" in
  4.     configure)
  5.         [ -e /var/log/installer/syslog ] && sed -i '/user-setup: YOU SHOULD RECORD THIS/,+2 d' /var/log/installer/syslog
  6.         pam-auth-update --package
  7.         # Try to migrate encrypted Private counters from /tmp to /dev/shm, if sane
  8.         for i in $(ls /home); do
  9.             if [ -f "/tmp/ecryptfs-$i-Private" ] && [ ! -e "/dev/shm/ecryptfs-$i-Private" ]; then
  10.                 o=$(stat -c %U "/tmp/ecryptfs-$i-Private")
  11.                 if [ $i = $o ]; then
  12.                     mv -f /tmp/ecryptfs-$i-Private /dev/shm
  13.                 fi
  14.             fi
  15.         done
  16.         ;;
  17.  
  18.     abort-upgrade|abort-remove|abort-deconfigure)
  19.  
  20.         ;;
  21.  
  22.     *)
  23.         echo "postinst called with unknown argument \`{$1}'" >&2
  24.         exit 1
  25.         ;;
  26. esac
  27.  
  28.  
  29.  
  30. exit 0
  31.